libcal.a: add.o sub.o
	ar -rc libcal.a add.o sub.o

add.o: add.cpp
	g++ -c add.cpp -std=c++11
sub.o: sub.cpp 
	g++ -c sub.cpp -std=c++11

.PHONY:output
output:
		mkdir -p mathlib/include
		mkdir -p mathlib/lib
		cp ./*.h mathlib/include
		cp ./libcal.a mathlib/lib

.PHONY:clean
clean:
		rm -r ./*.o libcal.o
		